package com.iwhalecloud.uncc.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author zq
 * @date 2021/10/14 10:49
 * @description CronProperties
 */
@Configuration
public class ArchiverProperties {

    @Value("${archiver.number}")
    private int number;
    @Value("${archiver.oneSendMax}")
    private int oneSendMax;
    @Value("${archiver.eachInsLines}")
    private int eachInsLines;
    @Value("${archiver.startDate}")
    private String startDate;
    @Value("${archiver.endDate}")
    private String endDate;
    @Value("${archiver.isDeleteOnlineDb}")
    private boolean isDeleteOnline;
    @Value("${archiver.cron}")
    private String cron;
    @Value("${archiver.dbNumber.online}")
    private int onlineDbNum;
    @Value("${archiver.dbNumber.history}")
    private int historyDbNum;

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getOneSendMax() {
        return oneSendMax;
    }

    public void setOneSendMax(int oneSendMax) {
        this.oneSendMax = oneSendMax;
    }

    public int getEachInsLines() {
        return eachInsLines;
    }

    public void setEachInsLines(int eachInsLines) {
        this.eachInsLines = eachInsLines;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public boolean getIsDeleteOnline() {
        return isDeleteOnline;
    }

    public void setIsDeleteOnline(boolean isDeleteOnline) {
        this.isDeleteOnline = isDeleteOnline;
    }

    public int getOnlineDbNum() {
        return onlineDbNum;
    }

    public void setOnlineDbNum(int onlineDbNum) {
        this.onlineDbNum = onlineDbNum;
    }

    public int getHistoryDbNum() {
        return historyDbNum;
    }

    public void setHistoryDbNum(int historyDbNum) {
        this.historyDbNum = historyDbNum;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }
}
